import { request, requestMock } from "@/utils/http";

//交易页数据获取
export const requestTradeInfo = () => {
  return request.get("/api/order/auth/trade");
};

// 地址数据
export const requestTradeAddress = () => {
  return requestMock.get("/address");
};

// 提交订单
export const requestSubmitOrders = (tradeNo, tradeInfo) => {
  return request.post(
    `/api/order/auth/submitOrder?tradeNo=${tradeNo}`,
    tradeInfo
  );
};
